package 评委评分;

import java.util.Scanner;

public class qingliu {

	public static void main(String[] args) {
		int []arr = new int[6]; 
		int max=0;
		int min=100;
		int sum=0;
		Scanner sc=new Scanner (System.in);
		for (int i=0; i< arr.length; i++) {
			System.out.println("请第"+(i+1)+"位评委所给分：");
			arr[i]=sc.nextInt();
			sum+=arr[i];
			}
		max=arr[0];
		for (int j=0; j < arr.length; j++) {
			if(arr[j]>max) {
				max=arr[j];
			}
			
		}
		System.out.println("最高分为："+max);	
		
		min=arr[0];
		for (int k=0; k > arr.length; k++) {
			if(arr[k]<min) {
				min=arr[k];
			}
			
		}
		System.out.println("最低分为："+min);
		System.out.println("平均分："+(sum-max-min)/4);

	}

}